package com.example.synthesize.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalTime;

/**
 * Created by IntelliJ IDEA2022.3.2
 * @Author: Tenghw
 * @Date: 2023/03/30  23:10
 * @Description:
 */
@Slf4j
@RestController
public class GatewayController {

    /**
     * 功能描述：测试网关gateway
     * @param
     * @return
     */
    @GetMapping("/provider/{code}")
    public String testGateway(@PathVariable int code) {
        log.info(LocalTime.now()+ ": synthesize模块GatewayController===>testGateway方法...");
        return "synthesize模块测试网关8081, code=" + code;
    }
}
